public class printerTest {
    public static void main(String[] args) {
        printer p1 =new printer();
        p1.setInkbox(new BlackInkBox());
        p1.setPaper(new A2paper());
        printer p2 =new printer(new ColorInkBox(),new A4Paper());
        p1.print();
        p2.print();
    }
}
